<?php
/**
* @version 1.5.x
* @package JoomVision Project
* @email webmaster@joomvision.com
* @copyright (C) 2009 http://www.JoomVision.com. All rights reserved.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
include_once (dirname(__FILE__).DS.'jv_tools.php');

// Javascript
    unset($this->_scripts[$this->baseurl . '/media/system/js/mootools.js']);
    unset($this->_scripts[$this->baseurl . '/media/system/js/caption.js']);
    
    if($gzip == "true") :
    $this->_scripts = array_merge(array(_TEMPLATE_URL . 'js/jv.script.js.php' => 'text/javascript'), $this->_scripts);
     else:
	$this->_scripts = array_merge(array(_TEMPLATE_URL . 'js/jv.script.js' => 'text/javascript'), $this->_scripts);
    $this->_scripts = array_merge(array(_TEMPLATE_URL . 'js/mootools.js' => 'text/javascript'), $this->_scripts);
    endif;
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo _BASE_URL; ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo _BASE_URL; ?>templates/system/css/general.css" type="text/css" />
<?php if($gzip == "true") : ?>
    <link rel="stylesheet" href="<?php echo _TEMPLATE_URL; ?>css/template.css.php" type="text/css" />
<?php else: ?>
    <link rel="stylesheet" href="<?php echo _TEMPLATE_URL; ?>css/default.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo _TEMPLATE_URL; ?>css/template.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo _TEMPLATE_URL; ?>css/typo.css" type="text/css" />
<?php endif; ?>
<link rel="stylesheet" href="<?php echo _TEMPLATE_URL; ?>css/jv_css.php" type="text/css" />

<link rel="stylesheet" href="<?php echo $jvTools->parse_jvcolor_cookie(); ?>" type="text/css" />
<script type="text/javascript">
	var siteurl = '<?php echo _TEMPLATE_URL; ?>';
	var baseurl = "<?php echo _BASE_URL; ?>";
	var pathcolor = '<?php echo _TEMPLATE_URL; ?>css/colors/';
	if (typeof(jQuery) != 'undefined') {
     	jQuery.noConflict();
	}
</script>

<!--[if lte IE 7]>
<link rel="stylesheet" href="<?php echo _TEMPLATE_URL; ?>css/ie7.css" type="text/css" />
<![endif]-->

<!--[if lte IE 6]>
<link rel="stylesheet" href="<?php echo _TEMPLATE_URL; ?>css/ie6.css" type="text/css" />
<script type="text/javascript" src="<?php echo _TEMPLATE_URL ?>js/ie_png.js"></script>
<script type="text/javascript">

window.addEvent ('load', function() {
	ie_png.fix('.png');
    fixIEPNG($$('img'));
<?php if(($menustyle == 'moo') || ($menustyle == 'css') ) : ?>
	if(navigator.appVersion.indexOf("MSIE")!=-1 && window.ie6){
		var zIndexNumber = 10000;
		$$('div').each(function(el,i){
			el.setStyle('z-index',zIndexNumber);
			zIndexNumber -= 10;
		});
	};
<?php endif; ?>
});

</script>
<![endif]-->
</head>

<body id="bd" class="fs<?php echo $this->params->get('jv_font'); ?> png" >
<div id="jv-wrapper">

<!-- BEGIN HEADER -->
	<div id="jv-headerwrap">
    	<div id="jv-header">
            <div id="jv-header-tr" class="png">
            	<div id="jv-header-tl" class="png">
                	<a id="jv-logo" class="png" href="<?php echo JURI::base(); ?>" title="<?php echo _SITE_NAME; ?>"><img src="<?php echo _TEMPLATE_URL; ?>images/blank.gif" alt="<?php echo _SITE_NAME; ?>" /></a>
                    <div id="jv-header-right">
                    	<div id="jv-header-right-pad">
							<?php if($showTools) : ?>
                            <div id="jv-tools">
                                <?php $jvTools->getChangeFont($jvTools->getParam('jv_font')); ?>
                            </div>
                            <?php endif; ?>
                            <?php if($this->countModules('user3')) : ?> 
                            <div id="jv-topnav">
                                <jdoc:include type="modules" name="user3" />
                            </div>
                            <?php endif; ?>
                            <?php if($this->countModules('login')) : ?> 
                            <div id="jv-loginform">
                                <jdoc:include type="modules" name="login" />
                            </div>
                            <?php endif; ?>
                        </div>
                    </div>
                    
                    <!-- Begin Menu -->
                    <div id="jv-mainmenu" class="png">
                    	<?php if (($menustyle == 'split') || ($menustyle == 'dropline') ) : ?>
                    	<div id="jv-mainmenu-tr" class="png">
                             <div id="jv-mainmenu-tl" class="png">
                        	</div>
                        </div>
                        <?php endif; ?>
                    	<div id="jv-mainmenu-br" class="<?php echo $menuclass1; ?> png">
                        	<div id="jv-mainmenu-bl" class="<?php echo $menuclass2; ?> png">
                            	<?php if($menustyle == 'split') : ?>
                                <div id="jv-mainmenu-split" style="float: <?php echo $float_menu; ?>; width: <?php echo $div_menu; ?>;">
                                	<?php $menu->show(0,0); ?>
                                </div>
                                <?php elseif($menustyle == 'dropline') : ?>
                                <div id="jv-mainmenu-drop" style="float: <?php echo $float_menu; ?>; width: <?php echo $div_menu; ?>;">
                                <?php $menu->show(); ?>
                                </div>
                                <?php else : ?>
                                <div id="jv-mainmenu-inner" style="float: <?php echo $float_menu; ?>; width: <?php echo $div_menu; ?>;">
                                <?php $menu->show(); ?>
                                </div>
                                <?php endif; ?>
                                
                                <?php if($this->countModules('user4')) : ?> 
                                <div id="jv-search" class="<?php echo $searchclass; ?>">
                                    <jdoc:include type="modules" name="user4" />
                                </div>
                                <?php endif; ?>
                                <?php if($menustyle == 'dropline') : ?>
                                <div id="jv-submenudrop">
                                </div>   
                                <?php endif; ?>
                                <?php if ($menustyle == 'split') : ?>
                                <div id="jv-submenu">
                                	<?php if($menu->hasChild(1)) : ?>
                                    	<?php $menu->show(1,6); ?>
									<?php endif; ?>
                                </div>
                                <?php endif; ?>
                       		</div>
                        </div>
                    </div>
                    <!-- End Menu -->
                </div>
            </div>
        </div>
    </div>
<!-- END HEADER -->

<!-- BEGIN CONTAINER --> 
	<div id="jv-containerwrap">
    	<div id="jv-container">
			<div id="jv-body-cr" class="png">
            	<div id="jv-body-cl" class="png">
                	<div id="jv-body-tr" class="png">
                    	<div id="jv-body-tl" class="png">
                        </div>
                    </div>
                    <div id="jv-body-cc" class="png">
                    	<div id="jv-body-pad">
                            <div id="jv-colleft" style="float: <?php echo $float; ?>; width: <?php echo $div_content; ?>;">
                                <div id="jv-colleft-pad">
                                    <!-- Begin Spotlight 1 -->
                                    <?php
                                        $spotlight = array('user1','user2');
                                        $botsl = $jvTools->calSpotlight($spotlight,$jvTools->browser()=='IE6' ? 99 : 100);
                                        if($botsl) : 
                                    ?>
                                    <div id="jv-slidewrap">
                                        <div id="jv-slide">
                                            <?php if($this->countModules('user1')) : ?>
                                            <div id="jv-user1" class="jv-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']?>;">
                                                <jdoc:include type="modules" name="user1" style="jvrounded" />
                                            </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('user2')) : ?>
                                            <div id="jv-user2" class="jv-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']?>;">
                                                <jdoc:include type="modules" name="user2" style="jvrounded" />
                                            </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <?php endif; ?>
                                    <!-- End Spotlight 1 -->
                                    
                                    <div id="jv-contentwrap">
                                        <div id="jv-content-left" style="width: <?php echo $div_inner; ?>; float: <?php echo $float_inner; ?>;">
                                            <?php if($this->countModules('add')) : ?>
                                            <div id="jv-content-add">
                                                <jdoc:include type="modules" name="add" style="jvrounded" />
                                            </div>
                                            <?php endif; ?>
                                            <div id="jv-content">
                                                <div id="jv-content-pad">
                                                    <jdoc:include type="message" />
                                                    <jdoc:include type="component" />								
                                                </div>
                                            </div>
                                            <?php if($this->countModules('news')) : ?>
                                            <div id="jv-content-user">
                                                <jdoc:include type="modules" name="news" style="jvrounded" />
                                            </div>
                                            <?php endif; ?>
                                        </div>
                                        <?php if($modLeft) : ?>
                                        <div id="jv-content-right">
                                            <jdoc:include type="modules" name="left" style="jvrounded" />
                                        </div>
                                        <?php endif; ?>
                                        
                                    </div>
                                    
                                    <!-- Begin Spotlight 2 -->
                                    <?php 
                                        $spotlight = array ('user5', 'user6','user7','user8');
                                        $botsl = $jvTools->calSpotlight ($spotlight,$jvTools->browser()=='IE6' ? 99 : 100);
                                        if ($botsl) :
                                    ?>
                                    <div id="jv-modwrap">
                                        <div class="jv-modwrap-pad">
                                            <?php if($this->countModules('user5')) : ?>
                                            <div id="jv-user5" class="jv-box<?php echo $botsl['user5']['class']; ?>" style="width: <?php echo $botsl['user5']['width']; ?>;">
                                                <jdoc:include type="modules" name="user5" style="jvrounded" />
                                            </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('user6')) : ?>
                                            <div id="jv-user6" class="jv-box<?php echo $botsl['user6']['class']; ?>" style="width: <?php echo $botsl['user6']['width']; ?>;">
                                                <jdoc:include type="modules" name="user6" style="jvrounded" />
                                            </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('user7')) : ?>
                                            <div id="jv-user7" class="jv-box<?php echo $botsl['user7']['class']; ?>" style="width: <?php echo $botsl['user7']['width']; ?>;">
                                                <jdoc:include type="modules" name="user7" style="jvrounded" />
                                            </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('user8')) : ?>
                                            <div id="jv-user8" class="jv-box<?php echo $botsl['user8']['class']; ?>" style="width: <?php echo $botsl['user8']['width']; ?>;">
                                                <jdoc:include type="modules" name="user8" style="jvrounded" />
                                            </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <?php endif; ?>
                                    <!-- End Spotlight 2 -->
                                    
                                </div>
                            </div>
                            <?php if($modRight) : ?>
                            <div id="jv-colright">
                                <jdoc:include type="modules" name="right" style="jvrounded" />
                            </div>
                            <?php endif; ?>
                    	</div>
                    </div>
                </div>
            </div>
            <div id="jv-body-br" class="png">
            	<div id="jv-body-bl" class="png">
                </div>
            </div>
        </div>	
	</div>
<!-- END CONTAINER -->
	
<!-- BEGIN FOOTER -->
    <div id="jv-footerwrap">
        <div id="jv-footer">
        	<div id="jv-footer-br">
            	<div id="jv-footer-bl">
                	<div id="jv-footer-tr">
                    	<div id="jv-footer-tl">
                            <div id="jv-footer-top">
                                <jdoc:include type="modules" name="footernav" />
                            </div>
                            <div id="jv-footer-bottom">
                                 <div class="jv-copyright">
                                 	<p><a id="jv-sublogo" class="png" href="<?php echo JURI::base(); ?>" title="<?php echo _SITE_NAME; ?>"><img src="<?php echo _TEMPLATE_URL; ?>images/blank.gif" alt="<?php echo _SITE_NAME; ?>" /></a><strong>JV Maju Template</strong><br/> Copyright &copy; 2008 - 2010 <a title="Professional Joomla Templates Club" target="_blank" href="http://www.joomvision.com">JoomVision.Com</a>. All rights reserved.<br/><a title="Professional JoomVision Templates Club" href="http://www.joomvision.com" target="_blank">JoomVision</a> - <a title="JoomVision.com" href="http://www.joomvision.com" target="_blank">Joomla! Templates</a> |    <a title="JoomVision.com" href="http://www.joomvision.com">Joomla! Extensions</a> |   <a title="JoomVision.com" href="http://www.joomvision.com" target="_blank">Professional Templates</a></p>
                                 </div>
                            </div>
                            <?php if($this->countModules('share')) : ?>
                            <div id="jv-boxshare">
                            	<div class="jv-share-br png">
                                	<div class="jv-share-bl png">
                                    	<div class="jv-share-tr png">
                                        	<div class="jv-share-tl png">
                                            	<jdoc:include type="modules" name="share" />
                                			</div>
                                		</div>
                                	</div>
                                </div>
                            </div>
                            <?php endif; ?>
                    	</div>
                    </div>
                </div>
            </div>
        </div>
	</div>
<!-- END FOOTER -->

</div>

<jdoc:include type="modules" name="debug" />
</body>
</html>

